package com.kehutong.question.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

@Table(value="t_question_common", comment="常见问题管理", idType = IDType.TIMESTAMP)
public class QuestionCommon extends Entity {

    private static final long serialVersionUID = 5171960658407950419L;

    protected QuestionCommon(String id) {
        super(id);
    }

    @Column(comment="封面图片")
    private String imgId;

    @CheckField("问题标题不能为空")
    @Column(comment="问题标题")
    private String title;

    @CheckField("问题内容不能为空")
    @Column(comment="问题内容", dbType = "TEXT", length = 65535)
    private String content;

    @Column(comment="分类ID")
    private String classifyId;

    @Column(comment="分类名称")
    private String classifyName;

    @Column(comment = "排序")
    private int sort;

    @Column(comment = "显示")
    private boolean showStatus;

    @Column(comment = "发布人ID")
    private String releaseUserId;

    @Column(comment = "发布人")
    private String releaseUserName;

    @Column(comment = "浏览人数")
    private int readNum;

    @Column(comment="逻辑删除")
    private boolean deleted;

    @Column(comment="附件ID")
    private String fileId;

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public boolean isShowStatus() {
        return showStatus;
    }

    public void setShowStatus(boolean showStatus) {
        this.showStatus = showStatus;
    }

    public String getReleaseUserId() {
        return releaseUserId;
    }

    public void setReleaseUserId(String releaseUserId) {
        this.releaseUserId = releaseUserId;
    }

    public String getReleaseUserName() {
        return releaseUserName;
    }

    public void setReleaseUserName(String releaseUserName) {
        this.releaseUserName = releaseUserName;
    }

    public int getReadNum() {
        return readNum;
    }

    public void setReadNum(int readNum) {
        this.readNum = readNum;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
}
